/* #include "client.h" */
#include "server.h"
#include <iostream>
#include <cstdlib>


int main(int argc, char const *argv[]) {
  std::cout << "ZJU computer network LAB7: 3180104829 王家蔚" << std::endl;
  if(argc < 2 or argv[1] == NULL)
  {
    std::cerr << "Please enter the server's name legally!" << std::endl;
    exit(0);
    return -1;
  }


  Server server(argv[1], AF_INET, INADDR_ANY, htons(SEVPORT));
  server.initialize();
  
  //std::string cmd_line;
  //std::cin >> cmd_line;


  return 0;
}
